package com.baizhi.cmfz.appcontroller;

import com.baizhi.cmfz.service.BannerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/bannerApp")
public class BannerAppController {

	@Resource
	private BannerService bannerService;

	@GetMapping("/selectBanner/{page}/{limit}")
	public Map selectBanner(@PathVariable("page") int page, @PathVariable("limit") int limit){
		return bannerService.selectBannerPage(page, limit);
	}
}
